package org.tio.sitexxx.service.service.tiosite;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.tio.sitexxx.service.model.main.BlogContent;

/**
 * @author tanyaowu
 * 2016年7月22日 上午10:44:55
 */
public class BlogContentService {
	@SuppressWarnings("unused")
	private static Logger					log	= LoggerFactory.getLogger(BlogContentService.class);
	public static final BlogContentService	me	= new BlogContentService();
	private final BlogContent				dao	= new BlogContent().dao();

	/**
	 *
	 * @author tanyaowu
	 */
	public BlogContentService() {
	}

	/**
	 * 根据博客id进行查询
	 * @param id
	 * @return
	 */
	public BlogContent getByBlogId(Integer blogid) {
		if (blogid == null) {
			return null;
		}
		BlogContent blogContent = dao.findById(blogid);
		if (blogContent == null) {
			return null;
		}
		return blogContent;
	}

	/**
	 * @param args
	 * @author tanyaowu
	 */
	public static void main(String[] args) {
	}

}
